<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head>
    <title>LuaApp项目接口文档</title>
    <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head>
<body>

<div id="container">

<div id="product">
	<div id="product_logo"></div>
	<div id="product_name"><big><b></b></big></div>
	<div id="product_description"></div>
</div> <!-- id="product" -->


<div id="main">


<!-- Menu -->

<div id="navigation">
<br/>
<h1>LuaApp</h1>

<ul>
  <li><a href="../index.html">Index</a></li>
</ul>

<h2>Contents</h2>
<ul>
<li><a href="#Methods">Methods</a></li>
</ul>


<h2>Classes</h2>
<ul class="nowrap">
  <li><a href="../classes/ActivityIndicatorView.html">ActivityIndicatorView</a></li>
  <li><a href="../classes/AlertView.html">AlertView</a></li>
  <li><a href="../classes/Application.html">Application</a></li>
  <li><a href="../classes/AudioEngine.html">AudioEngine</a></li>
  <li><a href="../classes/Button.html">Button</a></li>
  <li><a href="../classes/CaptureView.html">CaptureView</a></li>
  <li><a href="../classes/CheckBox.html">CheckBox</a></li>
  <li><a href="../classes/ClippingView.html">ClippingView</a></li>
  <li><a href="../classes/Control.html">Control</a></li>
  <li><a href="../classes/DatePickerView.html">DatePickerView</a></li>
  <li><a href="../classes/Device.html">Device</a></li>
  <li><a href="../classes/DownloadManager.html">DownloadManager</a></li>
  <li><a href="../classes/DrawView.html">DrawView</a></li>
  <li><a href="../classes/DrawerController.html">DrawerController</a></li>
  <li><a href="../classes/FileUtils.html">FileUtils</a></li>
  <li><a href="../classes/GifView.html">GifView</a></li>
  <li><a href="../classes/HttpClient.html">HttpClient</a></li>
  <li><a href="../classes/HttpRequest.html">HttpRequest</a></li>
  <li><a href="../classes/Image.html">Image</a></li>
  <li><a href="../classes/ImageView.html">ImageView</a></li>
  <li><a href="../classes/Label.html">Label</a></li>
  <li><a href="../classes/LinearView.html">LinearView</a></li>
  <li><a href="../classes/ListView.html">ListView</a></li>
  <li><a href="../classes/ListViewCell.html">ListViewCell</a></li>
  <li><strong>NavController</strong></li>
  <li><a href="../classes/Progress.html">Progress</a></li>
  <li><a href="../classes/Slider.html">Slider</a></li>
  <li><a href="../classes/Stepper.html">Stepper</a></li>
  <li><a href="../classes/Switch.html">Switch</a></li>
  <li><a href="../classes/TabBarController.html">TabBarController</a></li>
  <li><a href="../classes/TextField.html">TextField</a></li>
  <li><a href="../classes/TextView.html">TextView</a></li>
  <li><a href="../classes/UILoader.html">UILoader</a></li>
  <li><a href="../classes/View.html">View</a></li>
  <li><a href="../classes/ViewController.html">ViewController</a></li>
  <li><a href="../classes/WebView.html">WebView</a></li>
  <li><a href="../classes/Window.html">Window</a></li>
</ul>
<h2>Modules</h2>
<ul class="nowrap">
  <li><a href="../modules/Animation.html">Animation</a></li>
  <li><a href="../modules/class.html">class</a></li>
  <li><a href="../modules/constants.html">constants</a></li>
  <li><a href="../modules/crossapp.html">crossapp</a></li>
  <li><a href="../modules/cjson.html">cjson</a></li>
  <li><a href="../modules/mobdebug.html">mobdebug</a></li>
</ul>
<h2>Topics</h2>
<ul class="">
  <li><a href="../topics/readme.md.html">readme</a></li>
  <li><a href="../topics/layout.md.html">layout</a></li>
</ul>

</div>

<div id="content">

<h1>Class <code>NavController</code></h1>
<p>导航控制器提供类似堆栈的视图控制器的管理器，继承自ViewController</p>
<p>

</p>
    <h3>See also:</h3>
    <ul>
         <a href="../classes/ViewController.html#">ViewController</a>
    </ul>


<h2><a href="#Methods">Methods</a></h2>
<table class="function_list">
	<tr>
	<td class="name" nowrap><a href="#NavController:new">NavController:new (controller)</a></td>
	<td class="summary">创建对象</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#NavController:replaceViewController">NavController:replaceViewController (controller, useAnim)</a></td>
	<td class="summary">替换根视图控制器</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#NavController:pushViewController">NavController:pushViewController (controller, useAnim)</a></td>
	<td class="summary">在栈顶压入视图控制器</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#NavController:popViewControllerAnimated">NavController:popViewControllerAnimated (useAnim)</a></td>
	<td class="summary">从栈顶弹出视图控制器</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#NavController:popToRootViewControllerAnimated">NavController:popToRootViewControllerAnimated (useAnim)</a></td>
	<td class="summary">弹出视图控制器，仅保留根视图控制器</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#NavController:popFirstViewController">NavController:popFirstViewController ()</a></td>
	<td class="summary">从栈底弹出视图控制器</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#NavController:popViewControllerAtIndex">NavController:popViewControllerAtIndex (index)</a></td>
	<td class="summary">从指定索引弹出视图控制器</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#NavController:getViewControllerAtIndex">NavController:getViewControllerAtIndex (index)</a></td>
	<td class="summary">获取视图控制器</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#NavController:getBackViewController">NavController:getBackViewController ()</a></td>
	<td class="summary">获取栈顶视图控制器</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#NavController:getViewControllerCount">NavController:getViewControllerCount ()</a></td>
	<td class="summary">获取堆栈中视图控制器数量</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#NavController:setNavigationBarHidden">NavController:setNavigationBarHidden (bShow)</a></td>
	<td class="summary">设置是否显示导航条</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#NavController:isNavigationBarHidden">NavController:isNavigationBarHidden ()</a></td>
	<td class="summary">是否显示导航条</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#NavController:updateItem">NavController:updateItem (controller)</a></td>
	<td class="summary">更新视图控制器</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#NavController:setTouchMoved">NavController:setTouchMoved (bEnable)</a></td>
	<td class="summary">设置是否响应左右滑动弹出视图控制器事件</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#NavController:isTouchMoved">NavController:isTouchMoved ()</a></td>
	<td class="summary">是否响应左右滑动弹出视图控制器事件</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#NavController:setNavigationBarBackgroundImage">NavController:setNavigationBarBackgroundImage (img)</a></td>
	<td class="summary">设置导航条背景图片</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#NavController:getNavigationBarBackgroundImage">NavController:getNavigationBarBackgroundImage ()</a></td>
	<td class="summary">获取导航条背景图片</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#NavController:setNavigationBarBackgroundColor">NavController:setNavigationBarBackgroundColor (color)</a></td>
	<td class="summary">设置导航条背景颜色</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#NavController:getNavigationBarBackgroundColor">NavController:getNavigationBarBackgroundColor ()</a></td>
	<td class="summary">获取导航条背景颜色</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#NavController:setNavigationBarTitleColor">NavController:setNavigationBarTitleColor (color)</a></td>
	<td class="summary">设置导航条文字颜色</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#NavController:getNavigationBarTitleColor">NavController:getNavigationBarTitleColor ()</a></td>
	<td class="summary">获取导航条文字颜色</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#NavController:setNavigationBarButtonColor">NavController:setNavigationBarButtonColor (color)</a></td>
	<td class="summary">设置导航条按钮颜色</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#NavController:getNavigationBarButtonColor">NavController:getNavigationBarButtonColor ()</a></td>
	<td class="summary">获取导航条按钮颜色</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#NavController:setNavigationBarShowShadow">NavController:setNavigationBarShowShadow (isShow)</a></td>
	<td class="summary">设置是否显示导航条阴影</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#NavController:getNavigationBarShowShadow">NavController:getNavigationBarShowShadow ()</a></td>
	<td class="summary">是否显示导航条阴影</td>
	</tr>
</table>

<br/>
<br/>


    <h2 class="section-header "><a name="Methods"></a>Methods</h2>

    <dl class="function">
    <dt>
    <a name = "NavController:new"></a>
    <strong>NavController:new (controller)</strong>
    </dt>
    <dd>
    创建对象


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">controller</span>
            <span class="types"><a class="type" href="../classes/ViewController.html#">ViewController</a></span>



        </li>
    </ul>

    <h3>Returns:</h3>
    <ol>

           <span class="types"><a class="type" href="../classes/NavController.html#">NavController</a></span>
        controller
    </ol>




</dd>
    <dt>
    <a name = "NavController:replaceViewController"></a>
    <strong>NavController:replaceViewController (controller, useAnim)</strong>
    </dt>
    <dd>
    替换根视图控制器


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">controller</span>
            <span class="types"><a class="type" href="../classes/ViewController.html#">ViewController</a></span>



        </li>
        <li><span class="parameter">useAnim</span>
            <span class="types"><span class="type">bool</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "NavController:pushViewController"></a>
    <strong>NavController:pushViewController (controller, useAnim)</strong>
    </dt>
    <dd>
    在栈顶压入视图控制器


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">controller</span>
            <span class="types"><a class="type" href="../classes/ViewController.html#">ViewController</a></span>



        </li>
        <li><span class="parameter">useAnim</span>
            <span class="types"><span class="type">bool</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "NavController:popViewControllerAnimated"></a>
    <strong>NavController:popViewControllerAnimated (useAnim)</strong>
    </dt>
    <dd>
    从栈顶弹出视图控制器


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">useAnim</span>
            <span class="types"><span class="type">bool</span></span>



        </li>
    </ul>

    <h3>Returns:</h3>
    <ol>

           <span class="types"><a class="type" href="../classes/ViewController.html#">ViewController</a></span>
        controller
    </ol>




</dd>
    <dt>
    <a name = "NavController:popToRootViewControllerAnimated"></a>
    <strong>NavController:popToRootViewControllerAnimated (useAnim)</strong>
    </dt>
    <dd>
    弹出视图控制器，仅保留根视图控制器


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">useAnim</span>
            <span class="types"><span class="type">bool</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "NavController:popFirstViewController"></a>
    <strong>NavController:popFirstViewController ()</strong>
    </dt>
    <dd>
    从栈底弹出视图控制器



    <h3>Returns:</h3>
    <ol>

           <span class="types"><a class="type" href="../classes/ViewController.html#">ViewController</a></span>
        controller
    </ol>




</dd>
    <dt>
    <a name = "NavController:popViewControllerAtIndex"></a>
    <strong>NavController:popViewControllerAtIndex (index)</strong>
    </dt>
    <dd>
    从指定索引弹出视图控制器


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">index</span>
            <span class="types"><span class="type">int</span></span>



        </li>
    </ul>

    <h3>Returns:</h3>
    <ol>

           <span class="types"><a class="type" href="../classes/ViewController.html#">ViewController</a></span>
        controller
    </ol>




</dd>
    <dt>
    <a name = "NavController:getViewControllerAtIndex"></a>
    <strong>NavController:getViewControllerAtIndex (index)</strong>
    </dt>
    <dd>
    获取视图控制器


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">index</span>
            <span class="types"><span class="type">int</span></span>



        </li>
    </ul>

    <h3>Returns:</h3>
    <ol>

           <span class="types"><a class="type" href="../classes/ViewController.html#">ViewController</a></span>
        controller
    </ol>




</dd>
    <dt>
    <a name = "NavController:getBackViewController"></a>
    <strong>NavController:getBackViewController ()</strong>
    </dt>
    <dd>
    获取栈顶视图控制器



    <h3>Returns:</h3>
    <ol>

           <span class="types"><a class="type" href="../classes/ViewController.html#">ViewController</a></span>
        controller
    </ol>




</dd>
    <dt>
    <a name = "NavController:getViewControllerCount"></a>
    <strong>NavController:getViewControllerCount ()</strong>
    </dt>
    <dd>
    获取堆栈中视图控制器数量



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">int</span></span>
        count
    </ol>




</dd>
    <dt>
    <a name = "NavController:setNavigationBarHidden"></a>
    <strong>NavController:setNavigationBarHidden (bShow)</strong>
    </dt>
    <dd>
    设置是否显示导航条


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">bShow</span>
            <span class="types"><span class="type">bool</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "NavController:isNavigationBarHidden"></a>
    <strong>NavController:isNavigationBarHidden ()</strong>
    </dt>
    <dd>
    是否显示导航条



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">bool</span></span>
        bShow
    </ol>




</dd>
    <dt>
    <a name = "NavController:updateItem"></a>
    <strong>NavController:updateItem (controller)</strong>
    </dt>
    <dd>
    更新视图控制器


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">controller</span>
            <span class="types"><a class="type" href="../classes/ViewController.html#">ViewController</a></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "NavController:setTouchMoved"></a>
    <strong>NavController:setTouchMoved (bEnable)</strong>
    </dt>
    <dd>
    设置是否响应左右滑动弹出视图控制器事件


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">bEnable</span>
            <span class="types"><span class="type">bool</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "NavController:isTouchMoved"></a>
    <strong>NavController:isTouchMoved ()</strong>
    </dt>
    <dd>
    是否响应左右滑动弹出视图控制器事件



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">bool</span></span>
        bEnable
    </ol>




</dd>
    <dt>
    <a name = "NavController:setNavigationBarBackgroundImage"></a>
    <strong>NavController:setNavigationBarBackgroundImage (img)</strong>
    </dt>
    <dd>
    设置导航条背景图片


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">img</span>
            <span class="types"><a class="type" href="../classes/Image.html#">Image</a></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "NavController:getNavigationBarBackgroundImage"></a>
    <strong>NavController:getNavigationBarBackgroundImage ()</strong>
    </dt>
    <dd>
    获取导航条背景图片



    <h3>Returns:</h3>
    <ol>

           <span class="types"><a class="type" href="../classes/Image.html#">Image</a></span>
        img
    </ol>




</dd>
    <dt>
    <a name = "NavController:setNavigationBarBackgroundColor"></a>
    <strong>NavController:setNavigationBarBackgroundColor (color)</strong>
    </dt>
    <dd>
    设置导航条背景颜色


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">color</span>
            <span class="types"><span class="type">Color</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "NavController:getNavigationBarBackgroundColor"></a>
    <strong>NavController:getNavigationBarBackgroundColor ()</strong>
    </dt>
    <dd>
    获取导航条背景颜色



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">Color</span></span>
        color
    </ol>




</dd>
    <dt>
    <a name = "NavController:setNavigationBarTitleColor"></a>
    <strong>NavController:setNavigationBarTitleColor (color)</strong>
    </dt>
    <dd>
    设置导航条文字颜色


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">color</span>
            <span class="types"><span class="type">Color</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "NavController:getNavigationBarTitleColor"></a>
    <strong>NavController:getNavigationBarTitleColor ()</strong>
    </dt>
    <dd>
    获取导航条文字颜色



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">Color</span></span>
        color
    </ol>




</dd>
    <dt>
    <a name = "NavController:setNavigationBarButtonColor"></a>
    <strong>NavController:setNavigationBarButtonColor (color)</strong>
    </dt>
    <dd>
    设置导航条按钮颜色


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">color</span>
            <span class="types"><span class="type">Color</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "NavController:getNavigationBarButtonColor"></a>
    <strong>NavController:getNavigationBarButtonColor ()</strong>
    </dt>
    <dd>
    获取导航条按钮颜色



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">Color</span></span>
        color
    </ol>




</dd>
    <dt>
    <a name = "NavController:setNavigationBarShowShadow"></a>
    <strong>NavController:setNavigationBarShowShadow (isShow)</strong>
    </dt>
    <dd>
    设置是否显示导航条阴影


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">isShow</span>
            <span class="types"><span class="type">bool</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "NavController:getNavigationBarShowShadow"></a>
    <strong>NavController:getNavigationBarShowShadow ()</strong>
    </dt>
    <dd>
    是否显示导航条阴影



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">bool</span></span>
        isShow
    </ol>




</dd>
</dl>


</div> <!-- id="content" -->
</div> <!-- id="main" -->
<div id="about">
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
<i style="float:right;">Last updated 2017-04-25 21:28:27 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>
</html>
